#include <stdio.h>
#include <assert.h>
#include "../wc.c"

void test_count_characters() {
    int result = count_characters("tests/sample.txt");
    printf("Testing count_characters... Expected: 1200, Got: %d\n", result);
    assert(result == 1200);
}

void test_count_words() {
    int result = count_words("tests/sample.txt");
    printf("Testing count_words... Expected: 200, Got: %d\n", result);
    assert(result == 200);
}

void test_count_sentences() {
    int result = count_sentences("tests/sample.txt");
    printf("Testing count_sentences... Expected: 15, Got: %d\n", result);
    assert(result == 15);
}

void test_count_lines() {
    int result = count_lines("tests/sample.txt");
    printf("Testing count_lines... Expected: 50, Got: %d\n", result);
    assert(result == 50);
}


